package com.beself.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * author:徐明
 * date：2019/10/13 21:55
 * description:
 */

public class Habits {

//    习惯id
    private Integer hId;
//    习惯名称
    private String hName;
//    习惯创建日期
@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date hDate;
//    习惯的时间
    private String hTime;
//    习惯提示音
    private String hMusic;
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date hUptime;
    //    空余数据
    private String data2;
    private String data3;

    private List<Tasks> tasksList;

    private TUser tUser;

    public Habits() {
    }

    public Habits(Integer hId, String hName, Date hDate, String hTime, String hMusic, Date hUptime, String data2, String data3, List<Tasks> tasksList, TUser tUser) {
        this.hId = hId;
        this.hName = hName;
        this.hDate = hDate;
        this.hTime = hTime;
        this.hMusic = hMusic;
        this.hUptime = hUptime;
        this.data2 = data2;
        this.data3 = data3;
        this.tasksList = tasksList;
        this.tUser = tUser;
    }

    public Integer gethId() {
        return hId;
    }

    public void sethId(Integer hId) {
        this.hId = hId;
    }

    public String gethName() {
        return hName;
    }

    public void sethName(String hName) {
        this.hName = hName;
    }

    public Date gethDate() {
        return hDate;
    }

    public void sethDate(Date hDate) {
        this.hDate = hDate;
    }

    public String gethTime() {
        return hTime;
    }

    public void sethTime(String hTime) {
        this.hTime = hTime;
    }

    public String gethMusic() {
        return hMusic;
    }

    public void sethMusic(String hMusic) {
        this.hMusic = hMusic;
    }

    public Date gethUptime() {
        return hUptime;
    }

    public void sethUptime(Date hUptime) {
        this.hUptime = hUptime;
    }

    public String getData2() {
        return data2;
    }

    public void setData2(String data2) {
        this.data2 = data2;
    }

    public String getData3() {
        return data3;
    }

    public void setData3(String data3) {
        this.data3 = data3;
    }

    public List<Tasks> getTasksList() {
        return tasksList;
    }

    public void setTasksList(List<Tasks> tasksList) {
        this.tasksList = tasksList;
    }

    public TUser gettUser() {
        return tUser;
    }

    public void settUser(TUser tUser) {
        this.tUser = tUser;
    }

    @Override
    public String toString() {
        return "Habits{" +
                "hId=" + hId +
                ", hName='" + hName + '\'' +
                ", hDate=" + hDate +
                ", hTime='" + hTime + '\'' +
                ", hMusic='" + hMusic + '\'' +
                ", hUptime=" + hUptime +
                ", data2='" + data2 + '\'' +
                ", data3='" + data3 + '\'' +
                ", tasksList=" + tasksList +
                ", tUser=" + tUser +
                '}';
    }
}
